package work.konbai.bmc.cms.service;

import work.konbai.bmc.common.domain.Tree;
import work.konbai.bmc.cms.domain.KindDO;

import java.util.List;
import java.util.Map;

/**
 * 分类管理
 * @author KonBAI
 * @version 1.0
 * Create by 2020/02/07 22:12
 */
public interface KindService {

    KindDO get(Long kindId);

    List<KindDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(KindDO kind);

    int update(KindDO kind);

    int remove(Long kindId);

    int batchRemove(Long[] kindIds);

    Tree<KindDO> getTree();

    boolean checkKindHasUser(Long kindId);

    List<Long> listChildrenIds(Long parentId);

}
